package com.vrv.app.cyberspace.common.validator;

import com.vrv.app.cyberspace.exception.CyberspaceException;
import org.apache.commons.lang3.StringUtils;

/**
 * @Description
 * @Author by sm
 * @Create 2018-01-08 12:16
 */
public abstract class Assert {

    public static void isBlank(String str, String message) {
        if (StringUtils.isBlank(str)) {
            throw new CyberspaceException(message);
        }
    }

    public static void isNull(Object object, String message) {
        if (object == null) {
            throw new CyberspaceException(message);
        }
    }
}
